package com.gh.pattern.singleton.lazy;

//基本懒汉式
public class LazyOne {

    private LazyOne(){

    }

    private static LazyOne lazy = null;

    public static LazyOne getInstance() {
        if(lazy == null) {
            lazy = new LazyOne();
        }
        return lazy;
    }
}
